#include "UdpServer.hpp"
#include "Usage.hpp"

int main(int argc, char* argv[])
{
    if (argc != 2)
    {
        Usage(argv[0]);
        return USAGE_ERROR;
    }
    // std::string ip = argv[1];
    uint16_t port = std::stoi(argv[1]);
    UdpServer server(port);
    server.InitServer();
    server.Start();
    return 0;
}